package com.bootdo.system.mapper;

import com.bootdo.common.utils.Query;
import com.bootdo.system.domain.TbViporder;
import com.bootdo.system.domain.TbViporderExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface TbViporderMapper {
    long countByExample(TbViporderExample example);

    int deleteByExample(TbViporderExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(TbViporder record);

    int insertSelective(TbViporder record);

    List<TbViporder> selectByExampleWithBLOBs(TbViporderExample example);

    List<TbViporder> selectByExample(TbViporderExample example);

    TbViporder selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") TbViporder record, @Param("example") TbViporderExample example);

    int updateByExampleWithBLOBs(@Param("record") TbViporder record, @Param("example") TbViporderExample example);

    int updateByExample(@Param("record") TbViporder record, @Param("example") TbViporderExample example);

    int updateByPrimaryKeySelective(TbViporder record);

    int updateByPrimaryKeyWithBLOBs(TbViporder record);

    int updateByPrimaryKey(TbViporder record);

	List<TbViporder> listKm(Query query);

	int countKm(Query query);


	String getDirect2VipOrder(@Param("userId") Integer userId,@Param("paytime") String paytime);


	int getDirect2VipOrderNum(@Param("userId") Integer userId,@Param("paytime") String paytime);

	int getDirect2VipOrderNum2(@Param("openId") String openId,@Param("paytime") String paytime);
}